<%@ page language="java" import="java.util.*" pageEncoding="UTF-8"%>
<%@page import="live.api.impl.SanIsMember"%>
<%@ taglib uri="/WEB-INF/tld/struts-logic.tld" prefix="logic" %>
<%@ taglib uri="/WEB-INF/tld/core.tld" prefix="c" %>
<%@ taglib uri="/WEB-INF/tld/fn.tld" prefix="fn" %>
<%@ taglib uri="/WEB-INF/tld/struts-bean.tld" prefix="bean" %>
 <jsp:include page="../pub_head.jsp">
	<jsp:param value="3" name="type"/>
</jsp:include>
<%
String path = request.getContextPath();
String basePath = request.getScheme()+"://"+request.getServerName()+":"+request.getServerPort()+path+"/";
Object userId =session.getAttribute("ssoclientagent.user");
if(userId!=null){
	int isMember = new SanIsMember().isMember((String)userId);
	if(isMember==1){
		out.print("<script>");
		out.print("alert('对不起，您不是三生会员，暂不能进行机票预订、手机充值操作!');");
		out.print("location.href='"+basePath+"'");
		out.print("</script>");
	}
}
%>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<META content="text/html; charset=UTF-8" http-equiv="Content-Type">
<meta http-equiv="X-UA-Compatible" content="IE=EmulateIE7" />
<title>填写预订信息–国内机票预订查询服务</title>
<base href="<%=basePath %>" />
<link href="css/orderforms.css" type="text/css" rel="stylesheet" media="all" />
<link href="css/global.css" type="text/css" rel="stylesheet" media="all" />
<link href="css/datepicker.css" type="text/css" rel="stylesheet" />
<script type="text/javascript" src="script/ticket/ticketverify.js" charset="UTF-8"></script>
<script type="text/javascript" src="script/ticket/idnumber.js"></script>
<script type="text/javascript" src="script/ticket/jquery.orders.orderfilling.js"></script>
<script type="text/javascript" src="script/ticket/ticket.orderfilling.js"></script>
<script type="text/javascript" src="script/fc.js"></script>
</head>
<body>

<SCRIPT type="text/javascript"> 
var login_Ishide = true;
var login_FFvar = 0;
var shID = "loginbg";
function showdiv() {
    if (!login_Ishide) return;
    var sh_login = document.getElementById(shID);
    sh_login.style.display = "block";
    if (navigator.userAgent.indexOf("MSIE") > 0) {
        if (sh_login.filters.alpha.opacity >= 70) {
            clearTimeout(login_Timer);
            sh_login.filters.alpha.opacity = 70;
            login_Ishide = false;
			login_HideTimer = setTimeout("hidediv()", 5000);
            return;
        } else {
            sh_login.filters.alpha.opacity += 1;
            login_Timer = setTimeout("showdiv()", 50);
            return;
        }
    } else {
        if (sh_login.style.opacity >= 0.7) {
            clearTimeout(login_Timer);
            sh_login.style.opacity = 0.7;
            login_Ishide = false;
			login_HideTimer = setTimeout("hidediv()", 5000);
            return;
        } else {
            login_FFvar += 0.01;
            sh_login.style.opacity = login_FFvar;
            login_Timer = setTimeout("showdiv()", 50);
            return;
        }
    }
}
function hidediv() {
    if (login_Ishide) return;
    var sh_login = document.getElementById(shID);
    login_Timer = null;
    if (navigator.userAgent.indexOf("MSIE") > 0) {
        if (sh_login.filters.alpha.opacity <= 5) {
            sh_login.style.display = "none";
            login_Timer = null;
            login_Ishide = true;
            return;
        }
        sh_login.filters.alpha.opacity = sh_login.filters.alpha.opacity - 1;
        if (sh_login.filters.alpha.opacity <= 0) sh_login.filters.alpha.opacity = 0;
        login_Timer = setTimeout("hidediv() ", 10);
    } else {
        if (sh_login.style.opacity <= 0.01) {
            sh_login.style.display = "none";
            login_Timer = null;
            login_Ishide = true;
            login_FFvar = 0;
            return;
        }
        login_FFvar -= 0.01;
        sh_login.style.opacity = login_FFvar;
        if (sh_login.style.opacity <= 0) sh_login.style.opacity = 0;
        login_Timer = setTimeout("hidediv() ", 10);
    }
}
</SCRIPT>
 
<!-- top 专题小头部 start -->

<!-- top 专题小头部 end -->
<!--Header include end-->
<!--Header End-->
<div class="mBox" id="psgHisDiv" >
  <div class="mT"><span>请直接输入或用&uarr;&darr;选择</span><a href="javascript:void(0)" class="colseKe" title="关闭">关闭</a></div>
  <div class="mglist">
    <ul>
    </ul>
  </div>
</div>
 
<div class="mBox" id="psgHisDivTemplate" >
  <div class="mT"><span>请直接输入或用&uarr;&darr;选择</span><a href="javascript:void(0)" class="colseKe" title="关闭">关闭</a></div>
  <div class="mglist">
    <ul>
    
    </ul>
  </div>
</div>
 
<div id="addsTemplate" class="none">
 
</div>
<div id="addsTemplate2" class="none">
 
</div>
<div id="sendTemplate" class="none">
 
</div>
<div class="mBox none" id="addsHisDiv" >
  <div class="mT"><span>请直接输入或用&uarr;&darr;选择</span><a href="javascript:void(0)" class="colseKe" title="关闭">关闭</a></div>
  <div class="mglist">
    <ul>
    
    </ul>
  </div>
</div>
 
<div class="mBox none" id="adds2HisDiv">
  <div class="mT"><span>请直接输入或用&uarr;&darr;选择</span><a href="javascript:void(0)" class="colseKe" title="关闭">关闭</a></div>
  <div class="mglist">
    <ul>
    
    </ul>
  </div>
</div>
          
<div class="wrapper clearfix">
  <div class="stepout fillingt">
    <h1>填写订单信息</h1>
    <ul>
      <li class="current">选择</li>
      <li class="current">预订</li>
      <li>核对</li>
      <li>完成</li>
    </ul>
  </div>
 <!-- specialCostFlightInfo begin-->
    
  <!-- specialCostFlightInfo end -->
  <!--Left Sidebar Begin-->
  <div class="mainorder left">
    <div class="gotocit gotocitorder">
      <div class="t"><span>◀<a href="javascript:reCheckFlight();">返回上页&nbsp;重选航班</a></span>
        <h2>您预订航班信息<font style="color: red">请认真核对您的航班信息，以免影响预订</font></h2>
      </div>
      <table>
      <logic:iterate id="order" name="chooseOrders" indexId="index">
		  <tr class="borderb">
		          <td>
			          <strong>
			           <c:if test="${query.voyageType==2 && index==0}">
			        	去程
			        	</c:if>
			        	<c:if test="${query.voyageType==2 && index==1}">
			        	返程
			        	</c:if>
			        	<c:if test="${fn:length(chooseOrders)==1}">
			        	单程
			        	</c:if>
			          </strong>	
		         </td>
          <td><img src="/flight/airpic/${order.aircom}.gif" width="16" height="16" /> ${order.aircomName}<br />
            ${order.flightNo}</td>
          <td><p>${order.scityName}起飞：<bean:write name="order" property="depTime" format="yyyy-MM-dd HH:mm"/> &nbsp;</p>
            <p>到达${order.ecityName}：<bean:write name="order" property="arrTime" format="yyyy-MM-dd HH:mm"/></p></td>
          <td>
          	<p>成人：&yen;${order.cabinInfo.fare+order.tax+order.yq}（含税）</p>
          </td>
          <td>
          	<p>
          	<c:if test="${order.cabinInfo.level=='B'}">${order.cabinInfo.discount}折经济舱</c:if><c:if test="${order.cabinInfo.level=='Y'}">全价舱</c:if><c:if test="${order.cabinInfo.level=='F'}">头等舱</c:if>/${order.cabinInfo.level}</p>
          	<%--<p><a class="tipsDiv" rel="http://static.12580.com//flight/inc/toolstip1.jsp" href="javascript:void(0)" title="">退改规则</a></p>
          --%></td>
        </tr>
      </logic:iterate>
	 </table>
    </div>
   
    <form action="/flight/bookingTicket_check.do" id="form_baseinfo" name="form_baseinfo" method='post'>
    <!--乘客信息 Begin-->
    <div class="opb ck">
      <div class="t">
        <h2>乘客信息</h2>
        <span>1</span></div>
      <div class="opbc" id="addUin">
       	    
        <div class="uadd clearfix chksign">
          <h2>第1位乘客信息</h2>
          <input name="id" type="hidden" value="1" />
          <div class="opbright" id="passenger1">
            <ul>
              <li class="txt"><span>*</span>姓&nbsp;&nbsp;&nbsp;&nbsp;名：</li>
              <li class="">
                <a href="javascript:void(0)" class="morekesi morekesi4psg">更多客史</a><input type="text" id="personName1" name="psgName" value="" class="onInput arrde personName cusInput"/>
              </li>
            </ul>
            <ul>
              <li class="txt"><span>*</span>购票类型：</li>
              <li>
                <select id="psgType1" name="psgType" style="width:162px" class="onInput arrde psgType">
					<option value="1" selected >成人</option>
				</select>
              </li>
            </ul>
            <ul style="display:none">
              <li class="txt"><span>*</span>拼音/英文：</li>
              <li class="">
                <input id="psgEnName1" type="text" name="psgEnName" class="onInput arrde  enName" />
              </li>
            </ul>
			<ul style="display:none">
              <li class="txt"><span>*</span>看护人：</li>
              <li>
              <select id="keeper1" name="accompanyName" style="width:162px" class="onInput arrde babyKeeper">	
              	<option value=" " selected></option>				
			  </select>
			  </li>
            </ul>
			<ul style="display:none">
              <li class="txt"><span>*</span>出生日期：</li>
              <li>
              	<input id="birthday1" name="birthday" style="width:162px" value="YYYY-MM-DD" class="onInput datepicker birthday" />				
              </li>
            </ul>
            <ul>
              <li class="txt"><span>*</span>证件类型：</li>
              <li class="">
                <select id="paperType1" name="paperType" style="width:162px"  class="onInput arrde paperType">				
					<option value="1" selected>身份证</option>				
					<option value="2">护照</option>				
					<option value="3">军官证</option>				
		        </select>
		      </li>  
            </ul>
            <ul>
              <li class="txt"><span>*</span>证件号码：</li>
              <li class="">
                <input id="paperId1" type="text" name="paperId" value="" class="onInput paperId" />
              </li>
            </ul>
	            <div class="tipu saveHis none">
	              <input id="saveHis1" name="saveHis" value="1" type="checkbox" checked="checked" />
	              保存到我的账户</div>
          </div>
        </div>
      
      </div>
      <div class="addpro"><span id="psg_msg_index"></span><span id="psg_msg_err" style="display:none;">无法继续添加，仓位不够</span><a href="javascript://" id="btnaddpsg">增加乘客信息</a></div>
    </div>
    <!--乘客信息 End-->
    <!--联系人信息 Begin-->
    <div class="opb lx">
      <div class="t">
        <h2>联系人信息</h2>
        <span>2</span></div>
      <div class="opbc">
        <div class="opbright">
          <ul>
            <li class="txt"><span>*</span>姓&nbsp;&nbsp;&nbsp;&nbsp;名：</li>
            <li class="">
              <a href="javascript:void(0)" class="morekesi morekesi4linkman">更多客史</a><input  type="text" name="orderLinkman" id="tkMemberInfoHis_orderLinkman" value="" class="onInput arrde" />
            </li>
          </ul>
          <ul>
            <li class="txt"><span>*</span>手 机 号：</li>
            <li>
              <input type="text" name="cellphone" id="tkMemberInfoHis_cellphone"  value="" class="onInput" />
            </li>
          </ul></div>
      </div>
    </div>
    <!--联系人信息 End-->
    
    <div class="subdiv"><a href="javascript:next();" class="submittj">提交订单</a><a href="javascript:void(0);" onclick="reCheckFlight();" class="backssl">返回重选机票</a></div>
    </form>
  </div>
  <!--Left Sidebar End-->
  <!--Right Sidebar Begin-->
  <div class="sideRight right" id="adside">
    <div class="fillingin">
      <h2>费用总计</h2>
      <ul>
        <li>成人：<span id="adult_fee">&yen;${adultFee}(X1人)</span></li>
      </ul>
      <div class="totalcost">订单总金额：<span id="total_fee">¥${adultFee}</span></div>
      
    </div>
    <div class="tel12580"><img src="/images/tel_small.jpg" /></div>
  </div>
  <!--Right Sidebar End-->
</div>
<!--Footer Begin-->
 
<!--Footer Start-->
<jsp:include page="../footer.jsp"></jsp:include>
 
<!--Footer End-->

<!--Footer End-->
 
<script type="text/javascript" src="script/datepicker.js"></script>
<script type="text/javascript" src="script/jquery.cluetip.js"></script>
<script type="text/javascript" src="script/jquery.layer.js"></script>
 
<script type="text/javascript"> 
 
function reCheckFlight(){
				var tmp_text = "您已经填写了订单信息，如果重新选择机票，您需要重新填写订单信息，是否返回重选机票？";
				var content="<ul><li id=\"showcontent\" class=\"tbig\">"+tmp_text+"</li></ul> <div class=\"btndiv\"><a href=\"javascript:toFlightIndex();\" class=\"cxbtn\">确定</a> <a href=\"javascript:hidediv();\" class=\"cxbtn cxbtned\">取消</a></div>"
				document.getElementById("showDiv").innerHTML=content;
		 		ShowDivWin('返回重选机票？',400,200,'showDiv');
}
function sessionTimeout(){
				var tmp_text = "非常抱歉，由于您长时间未进行操作，数据已经过期。您需要重新填写订单信息，是否返回重选机票？";
				var content="<ul><li id=\"showcontent\" class=\"tbig\">"+tmp_text+"</li></ul> <div class=\"btndiv\"><a href=\"javascript:toFlightIndex();\" class=\"cxbtn\">确定</a> <a href=\"javascript:hidediv();\" class=\"cxbtn cxbtned\">取消</a></div>"
				document.getElementById("showDiv").innerHTML=content;
		 		ShowDivWin('返回重选机票？',400,200,'showDiv');
}
//调节函数
function ShowDivWin(Dtitle,DW,DH,Did)
{
	var diag = new Dialog();
	diag.Title = Dtitle;
	diag.Width = DW;
	diag.Height =DH;
	diag.InvokeElementId=Did
	diag.show();
}
 
function hidediv(){
Dialog.close('showDiv');
}
</script>
 
</body>
 
<script type="text/javascript" src="script/zDrag.js"></script>
<script type="text/javascript" src="script/zDialog.js"></script>
<div class="showDivStyle" id="showDiv" style="display:none">
	<ul>
    <li id="showcontent" class="tbig"></li>
    </ul> 
</div>
 
</html>
<script type="text/javascript"> 
 	function getCurPayType2(){
 		var types = document.getElementsByName('order.paytypeId');
 		for(i=0;i<types.length;i++){
 			if(types[i].checked){
 				return types[i].value;
 				break;
 			}
 		}
 	}
 function next(){
 if(confirm('请确定您预订的航班起飞时间在次日后的出票工作时间【${chooseOrders[0].cabinInfo.rate.workTime}】内，避免出票过晚带来不便,确定预订吗？')){
 	if(checkAllInfo()){
	 	var url = "/flight/flightOrder.do?op=verifyOrder";
		document.forms[0].action = url;
		document.forms[0].submit();
	}
	}
 }
 
  function toFlightIndex(){
  	var url="/flight/queryFlight.do?op=queryFlight&fromDate=${query.fromDate}&fromCity=${query.fromCity}&fromCityName=${query.fromCityName}&voyageType=${query.voyageType}&toCity=${query.toCity}&toCityName=${query.toCityName}&todate=${query.toDate}&cabinUsed=${query.cabinUsed}"
    url=encodeURI(url);
 	window.location.href = url;
 
 }
 	
 
 
 $(document).ready(function(){
	
	//////////////////////////////////// 联系人校验区 /////////////////////////////////////////////
	
	//联系人姓名校验
	$("#tkMemberInfoHis_orderLinkman").focus(function(){
	    $(this).next().remove();
	    
		if((isMemberFlag!=null && isMemberFlag!="" && !hasPsgHisList)||(isMemberFlag==null || isMemberFlag=="") ){
			var contents = "";
			$("#psgHisDiv").find("div").eq(1).html("");
			$(".personName").each(function(){
				var cur_id = $(this).parent().parent().parent().attr("id").replace("passenger","");;
				var cur_psg_type = $("#psgType"+cur_id).val();
				var ran = Math.floor(Math.random()*100000);
				var tmp_id = "values"+ran;
				var tmp_psgName = $(this).val();
				if(tmp_psgName!=null && tmp_psgName!="" && cur_psg_type!=null && cur_psg_type=="1"){
					contents += "<li class=\"psgHis\" id=\""+ tmp_id +"\">"+tmp_psgName;
					contents += "<span class=\""+tmp_id+" none\">"+tmp_psgName+"</span></li>";
				}
			});
			if(contents!=""){
				$("#psgHisDiv").find("div").eq(1).html("<ul>"+contents+"</ul>");
				$("#tkMemberInfoHis_orderLinkman").layerList("#psgHisDiv");
				$(".psgHis").click(function(){	
					$(this).parent().parent().parent().hide();
					var name = $("."+ $(this).attr("id")).html();
					var linkMan = name;
					if(linkMan!=null && linkMan!=""){
						$("#tkMemberInfoHis_orderLinkman").val(linkMan);
					}
				});
				$(".colseKe").click(function(){
					$(".mBox").hide();
				});
				$(".mglist li").hover(function(){
					$(".mglist li").removeClass("current");
					$(this).addClass("current");
				});
				$("#tkMemberInfoHis_orderLinkman").removeClass('arreded');
				$("#tkMemberInfoHis_orderLinkman").addClass('arredvip00');
			}else{
	             $("#tkMemberInfoHis_orderLinkman").removeClass('arredvip00');
	             $("#tkMemberInfoHis_orderLinkman").addClass('arreded');
			}
		}
	    
		
	});
    $("#tkMemberInfoHis_orderLinkman").blur(function(){
	    if (!checkName1($(this).val())&& $(this).val()!='')
		    $(this).after(errMsg("姓名格式不正确，正确的格式如下：张三或Zhang/San"));
		else {
		    $(this).next().remove();
		}
	});	
	
	//联系人手机校验
	<%--
	$("#tkMemberInfoHis_cellphone").focus(function(){
	    $(this).next().remove();
	});
	$("#tkMemberInfoHis_cellphone").blur(function(){
	    if (!IsMobileNoAlert($(this).val())&& $(this).val()!='')
		    $(this).after(errMsg("您输入的手机号码有误，请输入11位的手机号码"));
		else {
		    $(this).next().remove();
		}
	});
 
	
	//联系人电话校验(区号)
	$("#Tel_area").focus(function(){
	    $("#Tel_ext").next().remove();
	});
	$("#Tel_area").blur(function(){
	    if (!check4Area($(this).val())&& $(this).val()!='')
		    $("#Tel_ext").after(errMsg("您输入的区号有误，请输入正确的区号"));
		else {
		    $("#Tel_ext").next().remove();
		}
	});
	
	//联系人电话校验(号码)
	$("#Tel_number").focus(function(){
	    $("#Tel_ext").next().remove();
	});
	$("#Tel_number").blur(function(){
	    if (!check4Number($(this).val())&& $(this).val()!='')
		    $("#Tel_ext").after(errMsg("您输入的电话号码有误，请输入正确的号码"));
		else {
		    $("#Tel_ext").next().remove();
		}
	});
	
	//联系人电话校验(分机号)
	$("#Tel_ext").focus(function(){
	    $(this).next().remove();
	});
	$("#Tel_ext").blur(function(){
	    if (!check4Ext($(this).val())&& $(this).val()!='')
		    $(this).after(errMsg("您输入的分机号码有误，请输入正确的分机号码"));
		else {
		    $(this).next().remove();
		}
	});
	
	//联系人邮件校验
	$("#tkMemberInfoHis_email").focus(function(){
	    $(this).next().remove();
	});
	$("#tkMemberInfoHis_email").blur(function(){
	    if (!IsEmail($(this).val())&& $(this).val()!='')
		    $(this).after(errMsg("您输入的电子邮箱有误，正确格式如：abc@123.com"));
		else {
		    $(this).next().remove();
		}
	});
	
	
	--%>
	
 
});
function check4Area(obj){
	//alert("/"+obj+"/");   
	reg=/^\d{3,4}$/;   
	if(reg.test(obj)){        
		return true;   
	}else{   
		return false;   
	}   
} 
 
function check4Number(obj){   
	reg=/^\d{7,8}$/;   
	if(reg.test(obj)){        
		return true;   
	}else{   
		return false;   
	}   
} 
 
function check4Ext(obj){   
	reg=/^\d{1,5}$/;   
	if(reg.test(obj)){        
		return true;   
	}else{   
		return false;   
	}   
} 
 
function isEmail4Link(obj){   
	reg=/^\w{3,}@\w+(\.\w+)+$/;   
	if(reg.test(obj)){        
		return true;   
	}else{   
		return false;   
	}   
} 
////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////// 
 
//////////////////////////////////////////////////配送区校验(邮寄)///////////////////////////////////////////////////////////////////////////
	
	//详细地址校验
	$("#orderInfo_delivery_mailAddress").focus(function(){
	    $(this).next().remove();
	});
	$("#orderInfo_delivery_mailAddress").blur(function(){
	    if ($(this).val()==null || $(this).val()=="")
		    $(this).after(errMsg("详细地址不能为空，请正确填写！"));
		else {
		    $(this).next().remove();
		}
	});
	
	
	//邮政编码校验
	$("#orderInfo_delivery_zipcode").focus(function(){
	    $(this).next().remove();
	});
	$("#orderInfo_delivery_zipcode").blur(function(){
	    if ($(this).val()==null || $(this).val()=="")
		    $(this).after(errMsg("不能为空，请正确填写！"));
		else {
		    $(this).next().remove();
		}
	});
 
	
	
	//收件人姓名校验
	$("#orderInfo_delivery_recipients").focus(function(){
	    $(this).next().remove();
	});
	$("#orderInfo_delivery_recipients").blur(function(){
		if(!checkName1($(this).val())&& $(this).val()!='')
				$(this).after(errMsg("姓名格式不正确，正确的格式如下：张三或Zhang/San"));
		else {
		    $(this).next().remove();
		}
	});
 
	
	
	//收件人电话校验
	$("#orderInfo_delivery_recipientsTel").focus(function(){
	    $(this).next().remove();
	});
	$("#orderInfo_delivery_recipientsTel").blur(function(){
	    if (!isMobile($(this).val())&& $(this).val()!='')
		    $(this).after(errMsg("您输入的手机号码有误，请输入11位的手机号码"));
		else {
		    $(this).next().remove();
		}
	});
 
///////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
//////////////////////////////////////////////////配送区校验(送票上门)///////////////////////////////////////////////////////////////////////////
 
	/*//配送日期校验
	$("#sendDate").focus(function(){
	    $("#sendTime").next().remove();
	});
	$("#sendDate").blur(function(){
	    if ($(this).val()==null || $(this).val()=="")
		    $("#sendTime").after(errMsg("日期不能为空，请选择！"));
		else {
		    $("#sendTime").next().remove();
		}
	});
	//配送时间校验
	$("#sendTime").focus(function(){
	    $(this).next().remove();
	});
	$("#sendTime").blur(function(){
	    if ($(this).val()==null || $(this).val()=="")
		    $(this).after(errMsg("时间段不能为空，请选择！"));
		else {
		    $(this).next().remove();
		}
	});
	//详细地址校验
	$("#tkDelivery_address").focus(function(){
	    $(this).next().remove();
	});
	$("#tkDelivery_address").blur(function(){
	    if ($(this).val()==null || $(this).val()=="")
		    $(this).after(errMsg("详细地址不能为空，请正确填写！"));
		else {
		    $(this).next().remove();
		}
	});*/
	
	//收件人姓名校验
	/*$("#tkDelivery_receiveUser").focus(function(){
	    $(this).next().remove();
	});
	$("#tkDelivery_receiveUser").blur(function(){
		if(!checkName1($(this).val())&& $(this).val()!='')
			$(this).after(errMsg("姓名格式不正确，正确的格式如下：张三或Zhang/San"));
		else {
		    $(this).next().remove();
		}
	});*/
 
	//收件人电话校验
	/*$("#tkDelivery_userPhone").focus(function(){
	    $(this).next().remove();
	});
	$("#tkDelivery_userPhone").blur(function(){
	    if (!isMobile($(this).val())&& $(this).val()!='')
		    $(this).after(errMsg("您输入的手机号码有误，请输入11位的手机号码"));
		else {
		    $(this).next().remove();
		}
	});
  	function getCurPayType2(){
 		var types = document.getElementsByName('order.paytypeId');
 		for(i=0;i<types.length;i++){
 			if(types[i].checked){
 				return types[i].value;
 				break;
 			}
 		}
 	}*/
/** 
//////////////////////////////////////////////////联系人姓名自动填充第一乘客姓名///////////////////////////////////////////////////////////////
$(document).ready(function(){
	if(navigator.userAgent.indexOf("MSIE")>0)
	{
		document.getElementById('firstPsg').attachEvent("onpropertychange",leaveCityChange);
	}
	else if(navigator.userAgent.indexOf("Firefox")>0)
	{
	    document.getElementById('firstPsg').addEventListener("DOMAttrModified",leaveCityChange,false);
	}
});
 
//联系人姓名
function leaveCityChange()
{
	$('#tkMemberInfoHis_orderLinkman').val($('#firstPsg').val());
}
**/
setNameStyle();
function setNameStyle(){
	if(hasPsgHisList){
 		$(".personName").addClass('arredvip00'); 
  		$("#tkMemberInfoHis_orderLinkman").addClass('arredvip00');
	}
	else{
		$(".personName").addClass("arreded");
 		$("#tkMemberInfoHis_orderLinkman").addClass("arreded");
	}
	if(hasAddsHistList){
    	$("#orderInfo_delivery_recipients").addClass('arredvip00');
    	$("#tkDelivery_receiveUser").addClass('arredvip00');
	}
	else{
		$("#tkDelivery_receiveUser").addClass("arreded");
		$("#orderInfo_delivery_recipients").addClass("arreded");
	}
}
 
function setorderLinkmanhigh(){
     if(hasPsgHisList)
        return ;
			var contents = "";
			$(".personName").each(function(){	
				var tmp_psgName = $(this).val();
				if(tmp_psgName!=null && tmp_psgName!=""){
					contents +=tmp_psgName;
				}
			});
			if(contents.length>0)
               $("#tkMemberInfoHis_orderLinkman").addClass('arredvip00');
             else
             	$("#tkMemberInfoHis_orderLinkman").removeClass('arredvip00');
}
 
$(function(){
$(".arrde").hover(
	function () {
		$(this).addClass("arred");
	},
	function () {
		$(this).removeClass("arred");
	}
)
})
</script>
